from scapy.all import *
import time,socket,select

con_iface= 'eth0'

sock = conf.L2socket(iface=con_iface)
msg = b'a'*1000
port = 8899
sport = 12345
dip = '149.129.66.208'
dip = '42.51.28.250'
ip = IP(dst=dip)

for i in range(100):
    tcp2 = Ether()/ip/TCP(sport=sport,dport=port,seq=random.randint(424324,43253455),ack=41515,flags='PA',window=60000)/msg
    sock.send(tcp2)  

#tcp2 = Ether()/ip/TCP(sport=sport,dport=port,seq=random.randint(424324,43253455),ack=0,flags='S',window=60000)
#sock.send(tcp2)  

